import RPi.GPIO as GPIO
import VL53L0X
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(23, GPIO.OUT)
GPIO.setup(24, GPIO.OUT)
GPIO.output(23, 0)
time.sleep(1)
GPIO.output(24, 0)
time.sleep(1)
tof1 = VL53L0X.VL53L0X(i2c_bus=1, i2c_address=0x29)
time.sleep(1)
tof2 = VL53L0X.VL53L0X(i2c_bus=1, i2c_address=0x29)
time.sleep(1)
GPIO.output(23, 1)
time.sleep(1)
tof1.change_address(0x21)
time.sleep(1)
GPIO.output(24, 1)
time.sleep(1)
tof2.change_address(0x22)

